import { get, post, post_json } from '@/http/axios'
export default {
    namespaced: true,
    state: {
        productDate: []
    },
    mutations: {
        SET_PRODUCT(state, payload) {
            state.productDate = payload
        }
    },
    actions: {
        async getAllProduct({ commit }, payload) {
            
            let res = await get('/product/pageQuery', payload)
            commit('SET_PRODUCT', res.data.data.list)
        }
    },
}